<?php
/* @var $this CompanyStatsController */
$this->breadcrumbs=array(
	'综合控制台'=>array($this->pre_module_url.'/index/index'),
	'商城统计'=>array($this->pre_module_url.'/productStats/admin'),
	'会员购买排行'=>array($this->pre_module_url.'/memberStats/admin'),
);
?>
<div class="pro_filter c_f">
	<div class="filter f_l">
		<?php $form=$this->beginWidget('CActiveForm', array(
			'action'=>Yii::app()->createUrl($this->route),
			'id'=>'product-form',
			'method'=>'get',
			)); ?>
 			<label>会员名称：</label> 
			<?php echo CHtml::textField('Member[zm_name]',$model->zm_name,array('class'=>'t_ipt w_170 mr20'))?>
			<?php echo CHtml::submitButton(Yii::t('adm','Search'),array('class'=>'mem_bgx mem_btn01')); ?>
		<?php $this->endWidget(); ?>
	</div>
</div>
<table class="list_table list_table2" cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<th width="" class="pl15">会员名称</th>
		<th width="30%">成交订单（笔）</th>
		<th width="30%">购买总金额（元）</th>
		<th width="18%">注册时间</th>
	</tr>
</table>

<?php   
$this->widget('zii.widgets.CListView', array(    
    'dataProvider'=>$model->search(),    
    'itemView'=>'_view',      
    'emptyText'=>'暂时没有数据',    
    'itemsTagName'=>'table',  
    'itemsOptions'=>array('class'=>'list_table list_table2','width'=>'100%','cellpadding'=>0,'cellspacing'=>0),  
    'batchItem'=>array(    
        //导出数据
        CHtml::linkbtn(Yii::t('adm','Export Data'),'javascript:',array('onclick'=>'exportData()')),      
    ),    
));    
?>  

<script type="text/javascript">
function exportData(){
	$("#product-form").attr('action','export');
	$("#product-form").submit();
	$("#product-form").attr('action','');
};
</script>